import request from '@/utils/request'

// 七天销售总额
export function getsevenData(params) {
  return request({
    url: '/homePageStatistics/hebdomadSellSum',
    method: 'get',
    params
  })
}
// 本月新增
export function getMothData(params) {
  return request({
    url: '/homePageStatistics/hebdomadSellSum',
    method: 'get',
    params
  })
}
// 新增用户
export function getNewUser(params) {
  return request({
    url: '/homePageStatistics/todayAddUser',
    method: 'get',
    params
  })
}
// 今日订单总数
export function getOrderData(params) {
  return request({
    url: '/homePageStatistics/todayOrderCount',
    method: 'get',
    params
  })
}
// 今日销售总额
export function getSaleData(params) {
  return request({
    url: '/homePageStatistics/todaySellSum',
    method: 'get',
    params
  })
}
// 用户总数
export function getUserData(params) {
  return request({
    url: '/homePageStatistics/userCount',
    method: 'get',
    params
  })
}
// 昨天新增用户
export function getYesUser(params) {
  return request({
    url: '/homePageStatistics/yesterdayAddUser',
    method: 'get',
    params
  })
}
// 昨日销售总额
export function getYesOrder(params) {
  return request({
    url: '/homePageStatistics/yesterdaySellSum',
    method: 'get',
    params
  })
}
// 待处理
export function getPendingData(data) {
  return request({
    url: '/homePageStatistics/findOrderCount',
    method: 'post',
    data
  })
}
// 订单总数
export function getOderList(params) {
  return request({
    url: '/homePageStatistics/OrderCount',
    method: 'get',
    params
  })
}
// 订单eacher天数据
export function getOrderDay(params) {
  return request({
    url: '/homePageStatistics/OrderCountByTime',
    method: 'get',
    params
  })
}
// 订单eacher周月数据
export function getOrderWeek(params) {
  return request({
    url: '/homePageStatistics/OrderCountByDay',
    method: 'get',
    params
  })
}
// 销售总数
export function getSaleList(params) {
  return request({
    url: '/homePageStatistics/sellSum',
    method: 'get',
    params
  })
}
// 销售eacher天数据
export function getSaleDay(params) {
  return request({
    url: '/homePageStatistics/SellSumByTime',
    method: 'get',
    params
  })
}
// 销售eacher周月数据
export function getSaleWeek(params) {
  return request({
    url: '/homePageStatistics/SellSumByDay',
    method: 'get',
    params
  })
}
